package com.soft.sitegenerator.form;

import java.util.Collection;
import java.util.Set;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.CompositeTemplate;


public class CompositeTemplateEditForm extends ActionForm{

	private static final long serialVersionUID = 1L;

	private Component component = new DataBaseComponent();

	private CompositeTemplate compositeTemplate = (CompositeTemplate) component
			.getBean("compositeTemplatesHib");
	
	private Collection users;
	
	Long idOwner = null;
	
	private Collection allTemplates;
	
	public Collection getUsers() {
		return users;
	}

	public void setUsers(Collection users) {
		this.users = users;
	}

	public Long getIdOwner() {
		return idOwner;
	}

	public void setIdOwner(Long idOwner) {
		this.idOwner = idOwner;
	}

	public CompositeTemplate getCompositeTemplate() {
		return compositeTemplate;
	}

	public void setCompositeTemplate(CompositeTemplate compositeTemplate) {
		this.compositeTemplate = compositeTemplate;
	}

	public boolean equals(Object arg0) {
		return compositeTemplate.equals(arg0);
	}
	
	public Long getId() {
		return compositeTemplate.getId();
	}

	public void setId(Long id) {
		this.compositeTemplate.setId(id);
	}

	public String getName() {
		return compositeTemplate.getName();
	}

	public void setName(String name) {
		this.compositeTemplate.setName(name);
	}

	public String getDescription() {
		return compositeTemplate.getDescription();
	}

	public void setDescription(String description) {
		compositeTemplate.setDescription(description);
	}

	public Set getTemplates() {
		return compositeTemplate.getTemplates();
	}

	public void setTemplates(Set templates) {
		compositeTemplate.setTemplates(templates);
	}

	public Collection getAllTemplates() {
		return allTemplates;
	}

	public void setAllTemplates(Collection allTemplates) {
		this.allTemplates = allTemplates;
	}

	
}
